package comday04.itheima01;

public class Demo04 {
    public static void main(String[] args) {

        //索引越界异常
        //ArrayIndexOutOfBoundsException

        int[] arr1 = {11,22,33};

        System.out.println(arr1[0]);
        //System.out.println(arr1[3]);


        //空指针异常
        int[] arr2 = null;
        System.out.println(arr2[0]);
    }
}
